const getAllHouse = '/pbms/archouse/getAllHouse'
const getDictListByType = '/admin/dict/getDictListByType/'

export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "column": [
    {
      "type": "select",
      "label": "温室",
      "prop": "houseId",
      "span": 12,
      'search': true,
      rules: [
        { required: true, message: '请选择设备类型', trigger: 'blur' }
      ],
      "dicUrl": getAllHouse,
      props: {
        label: 'houseName',
        value: 'houseId'
      }
    }, {
      "type": "select",
      "label": "分组类型",
      "prop": "value",
      "span": 12,
      'search': true,
      "dicUrl": getDictListByType + "group_type",
      props: {
        label: 'label',
        value: 'value'
      }
    }]
}

export const tableGroupItemOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  selection: true,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [{
    width: 250,
    label: '装置名称',
    prop: 'deviceName',
  }, {
    label: '是否绑定本组',
    prop: 'thisGroup'
  }, {
    label: '是否绑定其他组',
    prop: 'otherGroup'
  }]
}
